package com.ruoyi.user.api.factory;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.user.api.RemoteOrdersService;
import com.ruoyi.user.api.RemoteService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class RemoteOrdersFallbackFactory implements FallbackFactory<RemoteOrdersService> {
    private static final Logger log = LoggerFactory.getLogger(RemoteOrdersFallbackFactory.class);

    @Override
    public RemoteOrdersService create(Throwable cause) {
        return new RemoteOrdersService() {


            @Override
            public AjaxResult getInfo(Long id, String source) {
                return null;
            }
        };
    }
}
